package com.chen.framework.model.auth;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chen.root.base.BaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * @author: ~龙~
 * @date: 2023/6/13 11:32
 **/
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("auth_role")
@ApiModel(value = "Role对象", description = "角色")
public class AuthRole extends BaseDO {

    @ApiModelProperty("角色ID")
    @TableId(value = "role_id")
    private Long roleId;

    @ApiModelProperty("角色名称")
    @TableField(value = "role_name")
    private String roleName;

    @ApiModelProperty("角色code")
    @TableField(value = "role_code")
    private String roleCode;

    /**
     * 更多请参考 RoleTypeEnums 枚举类
     */
    @ApiModelProperty("类型：0-超级管理员、1-普通管理员、2-基础用户")
    @TableField(value = "type")
    private String type;

}
